home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 June / PersonalComputerWorld-June2009-CoverdiscCD.iso / Software / Shareware / Mockups for Desktop 1.5.27 / MockupsForDesktop.air / MockupsAir.swf / scripts / _macMaxButtonStyle.as < prev    next >
Encoding:
Text File  |  2009-03-03  |  1.6 KB  |  45 lines

  1. package
  2. {
  3.    import mx.core.IFlexModuleFactory;
  4.    import mx.styles.CSSStyleDeclaration;
  5.    import mx.styles.StyleManager;
  6.    
  7.    public class _macMaxButtonStyle
  8.    {
  9.       private static var _embed_css_mac_max_over_png_326931228:Class = _macMaxButtonStyle__embed_css_mac_max_over_png_326931228;
  10.       
  11.       private static var _embed_css_mac_max_dis_png_1052937156:Class = _macMaxButtonStyle__embed_css_mac_max_dis_png_1052937156;
  12.       
  13.       private static var _embed_css_mac_max_down_png_1081057504:Class = _macMaxButtonStyle__embed_css_mac_max_down_png_1081057504;
  14.       
  15.       private static var _embed_css_mac_max_up_png_824365498:Class = _macMaxButtonStyle__embed_css_mac_max_up_png_824365498;
  16.       
  17.       public function _macMaxButtonStyle()
  18.       {
  19.          super();
  20.       }
  21.       
  22.       public static function init(param1:IFlexModuleFactory) : void
  23.       {
  24.          var fbs:IFlexModuleFactory = param1;
  25.          var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".macMaxButton");
  26.          if(!style)
  27.          {
  28.             style = new CSSStyleDeclaration();
  29.             StyleManager.setStyleDeclaration(".macMaxButton",style,false);
  30.          }
  31.          if(style.defaultFactory == null)
  32.          {
  33.             style.defaultFactory = function():void
  34.             {
  35.                this.upSkin = _embed_css_mac_max_up_png_824365498;
  36.                this.overSkin = _embed_css_mac_max_over_png_326931228;
  37.                this.downSkin = _embed_css_mac_max_down_png_1081057504;
  38.                this.disabledSkin = _embed_css_mac_max_dis_png_1052937156;
  39.             };
  40.          }
  41.       }
  42.    }
  43. }
  44.  
  45.